package chap4.Task2;
import java.util.Scanner;
public class Task8 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] a = new int[10];
        double sum = 0, mul = 1;
        System.out.println("输入数组元素的值:");
        for (int i = 0; i <= 9; i++) {
            a[i] = input.nextInt();
            sum += a[i];
            mul *= a[i];
        }
        System.out.println("数组的和=" + sum + ",数组的乘积=" + mul);

    }
}
